package cn.netjava.pojo;

/**
 * 树形结点类，存储界面中树形菜单信息
 *
 * @author Iron
 *
 */
public class TreeNode {
	// 默认构造器
	public TreeNode() {
	}

	// 自定义构造器
	public TreeNode(String id, String text, boolean leaf) {
		this.id = id;
		this.text = text;
		this.leaf = leaf;
	}

	// 树型结点ID
	private String id;
	// 名称
	private String text;
	// 是否是子结点
	private boolean leaf;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String gettext() {
		return text;
	}

	public void settext(String text) {
		this.text = text;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
}
